import yaml


class YamlHandler:
    # def __init__(self, file):
    #     self.file = file

    @staticmethod
    def read_yaml(file, encoding="utf-8"):
        with open(file, encoding=encoding) as f:
            return yaml.load_all(f.read(), Loader=yaml.FullLoader)


if __name__ == "__main__":
    result = YamlHandler.read_yaml("config.yaml")
    for i in result:
        print(i)
